From: Florian Date: Sun, 3 Jan 2016 14:43:19 +0000 (+0100) Subject: Remove deprecated Title::userIsWatching X-Git-Tag: 1.31.0-rc.0~8454^2 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=77468269af7102ff903072121f639ad461ef39ef;p=lhc%2Fweb%2Fwiklou.git Remove deprecated Title::userIsWatching Bug: T122754 Change-Id: Ibb895855aa1bf6b9cbbaf68643362ea485e0427c --- diff --git a/RELEASE-NOTES-1.27 b/RELEASE-NOTES-1.27 index d344114fa4..1355b4d6b3 100644 --- a/RELEASE-NOTES-1.27 +++ b/RELEASE-NOTES-1.27 @@ -215,6 +215,7 @@ changes to languages because of Phabricator reports. * ChangesList::usePatrol was removed (deprecated since 1.22). * wfMsgNoTrans() was removed (deprecated since 1.18). * Linker::makeImageLink2 was removed (deprecated since 1.20). +* Title::userIsWatching() was removed (deprecated since 1.20). == Compatibility == diff --git a/includes/Title.php b/includes/Title.php index 35d9c6bca9..3f880f51b4 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -130,12 +130,6 @@ class Title { */ public $mDefaultNamespace = NS_MAIN; - /** - * @var bool Is $wgUser watching this page? null if unfilled, accessed - * through userIsWatching() - */ - protected $mWatched = null; - /** @var int The page length, 0 for special pages */ protected $mLength = -1; @@ -1875,25 +1869,6 @@ class Title { return $s; } - /** - * Is $wgUser watching this page? - * - * @deprecated since 1.20; use User::isWatched() instead. - * @return bool - */ - public function userIsWatching() { - global $wgUser; - - if ( is_null( $this->mWatched ) ) { - if ( NS_SPECIAL == $this->mNamespace || !$wgUser->isLoggedIn() ) { - $this->mWatched = false; - } else { - $this->mWatched = $wgUser->isWatched( $this ); - } - } - return $this->mWatched; - } - /** * Can $user perform $action on this page? * This skips potentially expensive cascading permission checks